package atguigu06.polymorphism.exer1;

/**
 * ClassName: MyRectangle
 * Package: atguigu06.polymorphism.exer1
 * Description:
 *
 * @Author BuTang
 * @Create 2023/3/8 9:36
 * @Version 1.0
 */
public class MyRectangle extends GeometricObject{
    public MyRectangle(String color, double weight, double width, double height) {
        super(color, weight);
        this.width = width;
        this.height = height;
    }

    private double width;
    private double  height;


    @Override
    public double findArea() {
        return width*height;
    }
}
